package com.ngkj.zmfptback.business.service.write.impl;

import com.ngkj.zmfptback.business.bean.BusinessEntity;
import com.ngkj.zmfptback.business.mapper.write.BusinessWriteMapper;
import com.ngkj.zmfptback.business.service.write.BusinessWriteService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;

/**
 * @author ChenHN
 * @since 2021/12/28 creation
 **/
@Service
@Transactional(propagation = Propagation.REQUIRED)
public class BusinessWriteServiceImpl implements BusinessWriteService {

    @Resource
    private BusinessWriteMapper businessWriteMapper;

    @Override
    public void addBusiness(BusinessEntity business) {
        businessWriteMapper.addBusiness(business);
    }

    @Override
    public void editBusiness(BusinessEntity business) {
        businessWriteMapper.editBusiness(business);
    }

    @Override
    public void deleteBusiness(Long sqlsh) {
        businessWriteMapper.deleteBusiness(sqlsh);
    }
}
